
class ObjOneKeyDetail {
    int areaId;
    String areaName;
    String departChiefName;
    String departName;
    int iconId;
    String name;
    int personId;
    String sn;

    ObjOneKeyDetail({this.areaId, this.areaName, this.departChiefName, this.departName, this.iconId, this.name, this.personId, this.sn});

    factory ObjOneKeyDetail.fromJson(Map<String, dynamic> json) {
        return ObjOneKeyDetail(
            areaId: json['areaId'], 
            areaName: json['areaName'], 
            departChiefName: json['departChiefName'] ?? "",
            departName: json['departName'] ?? "",
            iconId: json['iconId'], 
            name: json['name'], 
            personId: json['personId'], 
            sn: json['sn'], 
        );
    }

    Map<String, dynamic> toJson() {
        final Map<String, dynamic> data = new Map<String, dynamic>();
        data['areaId'] = this.areaId;
        data['areaName'] = this.areaName;
        data['departChiefName'] = this.departChiefName;
        data['departName'] = this.departName;
        data['iconId'] = this.iconId;
        data['name'] = this.name;
        data['personId'] = this.personId;
        data['sn'] = this.sn;
        return data;
    }
}